using System;
using System.ComponentModel;
using System.Collections.Generic;

/// <summary>
/// Business entity class generated from Product
/// </summary>
/// <remarks>
/// Created by: huanhvhd
/// Created date: [2011-04-22]
/// </remarks>
namespace TVN.ShopMan.Entities
{
	public partial class ProductEntity
	{
		#region Properties
		
		public partial class Properties
		{
			public const string Id = "Id";
			public const string Name = "Name";
			public const string Description = "Description";
			public const string Cost = "Cost";
			public const string Price = "Price";
			public const string Quantity = "Quantity";
			public const string CreatedDate = "CreatedDate";
			public const string LastModifiedDate = "LastModifiedDate";
			public const string CreatedBy = "CreatedBy";
			public const string LastModifiedBy = "LastModifiedBy";
			public const string SupplierId = "SupplierId";
			public const string UnitId = "UnitId";
		}

		#endregion

		#region Private fields

		private long _id;
		private string _name;
		private string _description;
		private System.Decimal _cost;
		private System.Decimal _price;
		private System.Decimal _quantity;
		private DateTime _createdDate;
		private DateTime? _lastModifiedDate;
		private AccountEntity _createdBy;
		private AccountEntity _lastModifiedBy;
		private SupplierEntity _supplierId;
		private UnitEntity _unitId;

		private IList<ImportDetailEntity> _importDetailsProductId = new List<ImportDetailEntity>();
		private IList<ProductRepositoryEntity> _productRepositoriesProductId = new List<ProductRepositoryEntity>();
		private IList<SellDetailEntity> _sellDetailsProductId = new List<SellDetailEntity>();

		#endregion

		#region Constructors

		public ProductEntity()
		{
		}

		#endregion

		#region Properties

		public long Id
		{
			get { return _id; }
		}

		public string Name
		{
			get { return _name; }
			set { _name = value; }
		}

		public string Description
		{
			get { return _description; }
			set { _description = value; }
		}

		public System.Decimal Cost
		{
			get { return _cost; }
			set { _cost = value; }
		}

		public System.Decimal Price
		{
			get { return _price; }
			set { _price = value; }
		}

		public System.Decimal Quantity
		{
			get { return _quantity; }
			set { _quantity = value; }
		}

		public DateTime CreatedDate
		{
			get { return _createdDate; }
			set { _createdDate = value; }
		}

		public DateTime? LastModifiedDate
		{
			get { return _lastModifiedDate; }
			set { _lastModifiedDate = value; }
		}

		public AccountEntity CreatedBy
		{
			get { return _createdBy; }
			set { _createdBy = value; }
		}

		public AccountEntity LastModifiedBy
		{
			get { return _lastModifiedBy; }
			set { _lastModifiedBy = value; }
		}

		public SupplierEntity SupplierId
		{
			get { return _supplierId; }
			set { _supplierId = value; }
		}

		public UnitEntity UnitId
		{
			get { return _unitId; }
			set { _unitId = value; }
		}

		public IList<ImportDetailEntity> ImportDetailsProductId
		{
			get { return _importDetailsProductId; }
			set { _importDetailsProductId = value; }
		}
		public IList<ProductRepositoryEntity> ProductRepositoriesProductId
		{
			get { return _productRepositoriesProductId; }
			set { _productRepositoriesProductId = value; }
		}
		public IList<SellDetailEntity> SellDetailsProductId
		{
			get { return _sellDetailsProductId; }
			set { _sellDetailsProductId = value; }
		}
		#endregion

	} }

